using System.Net;
using System.Net.Mail;

namespace Syno.Tests
{
	
	public static class Helper 
	{
		
		public static SmtpClient Smtp()
		{
            const string sendEmailsFrom = "rolf.wessels@gmail.com";
            const string sendEmailsFromPassword = "st3rk3r101";
            var cred = new NetworkCredential(sendEmailsFrom, sendEmailsFromPassword);

            var mailClient = new SmtpClient("smtp.gmail.com", 587);
            mailClient.EnableSsl = true;
            mailClient.DeliveryMethod = SmtpDeliveryMethod.Network;
            mailClient.UseDefaultCredentials = false;
            mailClient.Timeout = 20000;
            mailClient.Credentials = cred;
            return mailClient;
		}
	}
}

